<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ taglib prefix="sx" uri="/struts-dojo-tags"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>修改员工信息</title>
<style type="text/css">
</style>
</head>
<body>
	<h2>修改员工信息</h2>
	<form action="editUserSave" name="add" method="post">
		<input type="hidden" name="user.userId" value="${user.userId}">
		<table>
			<tr>
				<td colspan="6"><b>系统账号信息</b>
				</td>
			</tr>
			<tr>
				<td>用户名：</td>
				<td colspan="5"><input type="text" name="user.userName"
					value="${user.userName}" /><span style="color: red;">*</span>
				</td>
			</tr>

			<tr>
				<td>所属部门：</td>
				<td colspan="5"><select name="user.departId">
						<s:iterator value="deptList" var="dl">
							<s:if test="%{#dl.deptId==#user.departId}">
								<option value="${dl.deptId}" selected="selected">${dl.deptName}</option>
							</s:if>
							<s:else>
								<option value="${dl.deptId}">${dl.deptName}</option>
							</s:else>

						</s:iterator>
				</select>
				</td>
			</tr>
			<tr>
				<td colspan="6"><b>员工基本信息</b>
				</td>
			</tr>
			<tr>
				<td>姓&nbsp;名：</td>
				<td><input type="text" name="user.empName"
					value="${user.empName}"><span style="color: red;">*</span>
				</td>
				<td>员工编号：</td>
				<td><input type="text" name="user.mpcode"
					value="${user.mpcode}">
				</td>
				<td>身份证号：</td>
				<td><input type="text" name="user.idcard"
					value="${user.idcard}">
				</td>
			</tr>
			<tr>
				<td>性别：</td>
				<td><input type="radio" name="user.gender" value="1" />男 <input
					type="radio" name="user.gender" value="0" />女</td>
				<td>籍&nbsp;贯</td>
				<td><input type="text" name="user.userNative"
					value="${user.userNative}" />
				</td>
				<td>民&nbsp;族</td>
				<td><input type="text" name="user.nation"
					value="${user.nation}" />
				</td>
			</tr>
			<tr>
				<td>备&nbsp;注：</td>
				<td colspan="5"><textarea rows="5" cols="50" name="user.memo">${user.memo}</textarea>
				</td>
			</tr>
			<tr>
				<td></td>
				<td colspan="5"><input type="submit" value="保存"> <input
					type="reset" value="重置">
				</td>
			</tr>
		</table>
	</form>
</body>
</html>